cmake_minimum_required(VERSION 3.5.1)
message(STATUS "CMake version: ${CMAKE_VERSION}")

project(test_cuda)

file(GLOB cpu_source_files "${CMAKE_SOURCE_DIR}/src/*.cpp")
file(GLOB gpu_source_files "${CMAKE_SOURCE_DIR}/src/*.cu")

find_package(OpenCV)
include_directories(OpenCV_INCLUDE_DIRS)

find_package(CUDA)
CUDA_ADD_LIBRARY(test_gpu ${gpu_source_files})

add_executable(${PROJECT_NAME}  ${cpu_source_files} ${gpu_source_files})
target_link_libraries(${PROJECT_NAME} test_gpu ${OpenCV_LIBS})
